
package ga;

import java.util.Comparator;


public class IndividuumComparartor implements Comparator<Individuum>{
    @Override
    public int compare(Individuum i1, Individuum i2) {
//        if(i1.getAverageTime().compareTo(i2.getAverageTime())){
//            return -1;
//        }
//        if(i1.getAverageTime() > i2.getAverageTime()){
//            return 1;
//        }
        return i1.getAverageTime().compareTo(i2.getAverageTime());
        //return (int)(i1.getAverageTime()- i2.getAverageTime());
    }
}
